// 登录相关接口
import axios from '@/api/request/request'
import { loginMock, registerMock, sendMessageMock, resetPasswordMock } from '@/mock/login'

// 用户ID校验接口
const checkUser = (option: any) => {
  return axios.post('/auth-server/user/checkUser', {
    ...option
  })
}

// 发送短信验证码
const sendMessage = (option: any) => {
  return sendMessageMock({
    ...option
  })
}

// 用户登录
const login = (option: any) => {
  return loginMock({
    ...option
  })
}

// 用户注册
const register = (option: any) => {
  return registerMock({
    ...option
  })
}

// 重置密码
const resetPassword = (option: any) => {
  return resetPasswordMock({
    ...option
  })
}

export { checkUser, sendMessage, login, register, resetPassword }
